package org.jeecg.modules.miniAppCustomerEndPoint.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.binarywang.wxpay.exception.WxPayException;
import org.jeecg.modules.hc.entity.HcWxPay;
import org.jeecg.modules.miniAppCustomerEndPoint.entity.JxOrderDo;

import java.math.BigDecimal;

/**
 * @Description: 微信支付
 * @Author: jeecg-boot
 * @Date:   2023-01-07
 * @Version: V1.0
 */

public interface IJxWxPayService extends IService<JxOrderDo> {

    /**
     * 微信支付
     * @param type
     * @param userId
     * @param openId
     * @param description
     * @param total
     * @return
     */
    HcWxPay pay(String type, String userId, String openId, String description, BigDecimal total) throws WxPayException;

    /**
     * 查询支付结果
     * @param payId
     * @return
     */
    HcWxPay queryPay(String payId);
}
